function MembershipRecord(params){ 
	 
}

MembershipRecord.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new MembershipRecord.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new MembershipRecord.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new MembershipRecord.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	
	
	/** 编号 [非空]       **/
	this.id=function(id){if(this.proxy)return this.getProxy().id(id);  this.put("id", id);return this;};
	/** and id is null */
	this.idNull=function(){if(this.proxy)return this.getProxy().idNull();if(this.get("idNot")==null)this.put("idNot", "");this.put("id", null);return this;};
	/** not .... */
	this.idNot=function(){if(this.proxy)return this.getProxy().idNot();this.put("idNot", "not");return this;};
	this.idNotNull=function(){if(this.proxy)return this.getProxy().idNotNull();this.put("idNot", "not");this.put("id", null);return this;};
	this.idNot=function(id){if(this.proxy)return this.getProxy().idNot(id);this.put("idNot", "not");this.put("id", id);return this;};
		
	/** and id <= ? */
	this.idMin=function(min){if(this.proxy)return this.getProxy().idMin(min);this.put("idMin", min);return this;};
	/** and id >= ? */
	this.idMax=function(max){if(this.proxy)return this.getProxy().idMax(max);this.put("idMax", max);return this;};
		
		
	this.idIn=function(ids){
		if(this.proxy)return this.getProxy().idIn(ids);  this.put("idIn", ids);return this;
	};	
		 
	
	
	/** 打款编号        **/
	this.callNo=function(callNo){if(this.proxy)return this.getProxy().callNo(callNo);  this.put("callNo", callNo);return this;};
	/** and call_no is null */
	this.callNoNull=function(){if(this.proxy)return this.getProxy().callNoNull();if(this.get("callNoNot")==null)this.put("callNoNot", "");this.put("callNo", null);return this;};
	/** not .... */
	this.callNoNot=function(){if(this.proxy)return this.getProxy().callNoNot();this.put("callNoNot", "not");return this;};
	this.callNoNotNull=function(){if(this.proxy)return this.getProxy().callNoNotNull();this.put("callNoNot", "not");this.put("callNo", null);return this;};
	this.callNoNot=function(callNo){if(this.proxy)return this.getProxy().callNoNot(callNo);this.put("callNoNot", "not");this.put("callNo", callNo);return this;};
		
		 
	
	
	/** 提现类型    1:微信 2:支付宝     **/
	this.type=function(type){if(this.proxy)return this.getProxy().type(type);  this.put("type", type);return this;};
	/** and type is null */
	this.typeNull=function(){if(this.proxy)return this.getProxy().typeNull();if(this.get("typeNot")==null)this.put("typeNot", "");this.put("type", null);return this;};
	/** not .... */
	this.typeNot=function(){if(this.proxy)return this.getProxy().typeNot();this.put("typeNot", "not");return this;};
	this.typeNotNull=function(){if(this.proxy)return this.getProxy().typeNotNull();this.put("typeNot", "not");this.put("type", null);return this;};
	this.typeNot=function(type){if(this.proxy)return this.getProxy().typeNot(type);this.put("typeNot", "not");this.put("type", type);return this;};
		
		
	this.typeIn=function(ids){
		if(this.proxy)return this.getProxy().typeIn(ids);  this.put("typeIn", ids);return this;
	};	
		 
	
	
	/** 收款姓名 [非空]       **/
	this.name=function(name){if(this.proxy)return this.getProxy().name(name);  this.put("name", name);return this;};
	/** and name is null */
	this.nameNull=function(){if(this.proxy)return this.getProxy().nameNull();if(this.get("nameNot")==null)this.put("nameNot", "");this.put("name", null);return this;};
	/** not .... */
	this.nameNot=function(){if(this.proxy)return this.getProxy().nameNot();this.put("nameNot", "not");return this;};
	this.nameNotNull=function(){if(this.proxy)return this.getProxy().nameNotNull();this.put("nameNot", "not");this.put("name", null);return this;};
	this.nameNot=function(name){if(this.proxy)return this.getProxy().nameNot(name);this.put("nameNot", "not");this.put("name", name);return this;};
		
		 
	
	
	/** 提现电话        **/
	this.cashCall=function(cashCall){if(this.proxy)return this.getProxy().cashCall(cashCall);  this.put("cashCall", cashCall);return this;};
	/** and cash_call is null */
	this.cashCallNull=function(){if(this.proxy)return this.getProxy().cashCallNull();if(this.get("cashCallNot")==null)this.put("cashCallNot", "");this.put("cashCall", null);return this;};
	/** not .... */
	this.cashCallNot=function(){if(this.proxy)return this.getProxy().cashCallNot();this.put("cashCallNot", "not");return this;};
	this.cashCallNotNull=function(){if(this.proxy)return this.getProxy().cashCallNotNull();this.put("cashCallNot", "not");this.put("cashCall", null);return this;};
	this.cashCallNot=function(cashCall){if(this.proxy)return this.getProxy().cashCallNot(cashCall);this.put("cashCallNot", "not");this.put("cashCall", cashCall);return this;};
		
		 
	
	
	/** 提现人  [Member]      **/
	this.cashProvider=function(cashProvider){if(this.proxy)return this.getProxy().cashProvider(cashProvider);  this.put("cashProvider", cashProvider);return this;};
	/** and cash_provider is null */
	this.cashProviderNull=function(){if(this.proxy)return this.getProxy().cashProviderNull();if(this.get("cashProviderNot")==null)this.put("cashProviderNot", "");this.put("cashProvider", null);return this;};
	/** not .... */
	this.cashProviderNot=function(){if(this.proxy)return this.getProxy().cashProviderNot();this.put("cashProviderNot", "not");return this;};
	this.cashProviderNotNull=function(){if(this.proxy)return this.getProxy().cashProviderNotNull();this.put("cashProviderNot", "not");this.put("cashProvider", null);return this;};
	this.cashProviderNot=function(cashProvider){if(this.proxy)return this.getProxy().cashProviderNot(cashProvider);this.put("cashProviderNot", "not");this.put("cashProvider", cashProvider);return this;};
		
		
	this.cashProviderIn=function(ids){
		if(this.proxy)return this.getProxy().cashProviderIn(ids);  this.put("cashProviderIn", ids);return this;
	};	
		 
	
	
	
	/** 支付宝账号        **/
	this.alipayNo=function(alipayNo){if(this.proxy)return this.getProxy().alipayNo(alipayNo);  this.put("alipayNo", alipayNo);return this;};
	/** and alipay_no is null */
	this.alipayNoNull=function(){if(this.proxy)return this.getProxy().alipayNoNull();if(this.get("alipayNoNot")==null)this.put("alipayNoNot", "");this.put("alipayNo", null);return this;};
	/** not .... */
	this.alipayNoNot=function(){if(this.proxy)return this.getProxy().alipayNoNot();this.put("alipayNoNot", "not");return this;};
	this.alipayNoNotNull=function(){if(this.proxy)return this.getProxy().alipayNoNotNull();this.put("alipayNoNot", "not");this.put("alipayNo", null);return this;};
	this.alipayNoNot=function(alipayNo){if(this.proxy)return this.getProxy().alipayNoNot(alipayNo);this.put("alipayNoNot", "not");this.put("alipayNo", alipayNo);return this;};
		
		 
	
	
	/** 提现金额        **/
	this.money=function(money){if(this.proxy)return this.getProxy().money(money);  this.put("money", money);return this;};
	/** and money is null */
	this.moneyNull=function(){if(this.proxy)return this.getProxy().moneyNull();if(this.get("moneyNot")==null)this.put("moneyNot", "");this.put("money", null);return this;};
	/** not .... */
	this.moneyNot=function(){if(this.proxy)return this.getProxy().moneyNot();this.put("moneyNot", "not");return this;};
	this.moneyNotNull=function(){if(this.proxy)return this.getProxy().moneyNotNull();this.put("moneyNot", "not");this.put("money", null);return this;};
	this.moneyNot=function(money){if(this.proxy)return this.getProxy().moneyNot(money);this.put("moneyNot", "not");this.put("money", money);return this;};
		
	/** and money <= ? */
	this.moneyMin=function(min){if(this.proxy)return this.getProxy().moneyMin(min);this.put("moneyMin", min);return this;};
	/** and money >= ? */
	this.moneyMax=function(max){if(this.proxy)return this.getProxy().moneyMax(max);this.put("moneyMax", max);return this;};
		
		 
	
	
	/** 审核类型    1:审核中 2:已打款 3:拒绝     **/
	this.auditType=function(auditType){if(this.proxy)return this.getProxy().auditType(auditType);  this.put("auditType", auditType);return this;};
	/** and audit_type is null */
	this.auditTypeNull=function(){if(this.proxy)return this.getProxy().auditTypeNull();if(this.get("auditTypeNot")==null)this.put("auditTypeNot", "");this.put("auditType", null);return this;};
	/** not .... */
	this.auditTypeNot=function(){if(this.proxy)return this.getProxy().auditTypeNot();this.put("auditTypeNot", "not");return this;};
	this.auditTypeNotNull=function(){if(this.proxy)return this.getProxy().auditTypeNotNull();this.put("auditTypeNot", "not");this.put("auditType", null);return this;};
	this.auditTypeNot=function(auditType){if(this.proxy)return this.getProxy().auditTypeNot(auditType);this.put("auditTypeNot", "not");this.put("auditType", auditType);return this;};
		
		
	this.auditTypeIn=function(ids){
		if(this.proxy)return this.getProxy().auditTypeIn(ids);  this.put("auditTypeIn", ids);return this;
	};	
		 
	
	
	/** 拒绝理由        **/
	this.reasonsRefusal=function(reasonsRefusal){if(this.proxy)return this.getProxy().reasonsRefusal(reasonsRefusal);  this.put("reasonsRefusal", reasonsRefusal);return this;};
	/** and reasons_refusal is null */
	this.reasonsRefusalNull=function(){if(this.proxy)return this.getProxy().reasonsRefusalNull();if(this.get("reasonsRefusalNot")==null)this.put("reasonsRefusalNot", "");this.put("reasonsRefusal", null);return this;};
	/** not .... */
	this.reasonsRefusalNot=function(){if(this.proxy)return this.getProxy().reasonsRefusalNot();this.put("reasonsRefusalNot", "not");return this;};
	this.reasonsRefusalNotNull=function(){if(this.proxy)return this.getProxy().reasonsRefusalNotNull();this.put("reasonsRefusalNot", "not");this.put("reasonsRefusal", null);return this;};
	this.reasonsRefusalNot=function(reasonsRefusal){if(this.proxy)return this.getProxy().reasonsRefusalNot(reasonsRefusal);this.put("reasonsRefusalNot", "not");this.put("reasonsRefusal", reasonsRefusal);return this;};
		
		 
	
	
	/** 条款    1:同意 2:不同意     **/
	this.clause=function(clause){if(this.proxy)return this.getProxy().clause(clause);  this.put("clause", clause);return this;};
	/** and clause is null */
	this.clauseNull=function(){if(this.proxy)return this.getProxy().clauseNull();if(this.get("clauseNot")==null)this.put("clauseNot", "");this.put("clause", null);return this;};
	/** not .... */
	this.clauseNot=function(){if(this.proxy)return this.getProxy().clauseNot();this.put("clauseNot", "not");return this;};
	this.clauseNotNull=function(){if(this.proxy)return this.getProxy().clauseNotNull();this.put("clauseNot", "not");this.put("clause", null);return this;};
	this.clauseNot=function(clause){if(this.proxy)return this.getProxy().clauseNot(clause);this.put("clauseNot", "not");this.put("clause", clause);return this;};
		
		
	this.clauseIn=function(ids){
		if(this.proxy)return this.getProxy().clauseIn(ids);  this.put("clauseIn", ids);return this;
	};	
		 
	
	
	/** formId        **/
	this.formid=function(formid){if(this.proxy)return this.getProxy().formid(formid);  this.put("formid", formid);return this;};
	/** and formid is null */
	this.formidNull=function(){if(this.proxy)return this.getProxy().formidNull();if(this.get("formidNot")==null)this.put("formidNot", "");this.put("formid", null);return this;};
	/** not .... */
	this.formidNot=function(){if(this.proxy)return this.getProxy().formidNot();this.put("formidNot", "not");return this;};
	this.formidNotNull=function(){if(this.proxy)return this.getProxy().formidNotNull();this.put("formidNot", "not");this.put("formid", null);return this;};
	this.formidNot=function(formid){if(this.proxy)return this.getProxy().formidNot(formid);this.put("formidNot", "not");this.put("formid", formid);return this;};
		
		 
	
	
	/** 打款日志        **/
	this.erreoLog=function(erreoLog){if(this.proxy)return this.getProxy().erreoLog(erreoLog);  this.put("erreoLog", erreoLog);return this;};
	/** and erreo_log is null */
	this.erreoLogNull=function(){if(this.proxy)return this.getProxy().erreoLogNull();if(this.get("erreoLogNot")==null)this.put("erreoLogNot", "");this.put("erreoLog", null);return this;};
	/** not .... */
	this.erreoLogNot=function(){if(this.proxy)return this.getProxy().erreoLogNot();this.put("erreoLogNot", "not");return this;};
	this.erreoLogNotNull=function(){if(this.proxy)return this.getProxy().erreoLogNotNull();this.put("erreoLogNot", "not");this.put("erreoLog", null);return this;};
	this.erreoLogNot=function(erreoLog){if(this.proxy)return this.getProxy().erreoLogNot(erreoLog);this.put("erreoLogNot", "not");this.put("erreoLog", erreoLog);return this;};
		
		 
	
	
	/** 修改时间 [非空]       **/
	this.updateTime=function(updateTime){if(this.proxy)return this.getProxy().updateTime(updateTime);  this.put("updateTime", updateTime);return this;};
	/** and update_time is null */
	this.updateTimeNull=function(){if(this.proxy)return this.getProxy().updateTimeNull();if(this.get("updateTimeNot")==null)this.put("updateTimeNot", "");this.put("updateTime", null);return this;};
	/** not .... */
	this.updateTimeNot=function(){if(this.proxy)return this.getProxy().updateTimeNot();this.put("updateTimeNot", "not");return this;};
	this.updateTimeNotNull=function(){if(this.proxy)return this.getProxy().updateTimeNotNull();this.put("updateTimeNot", "not");this.put("updateTime", null);return this;};
	this.updateTimeNot=function(updateTime){if(this.proxy)return this.getProxy().updateTimeNot(updateTime);this.put("updateTimeNot", "not");this.put("updateTime", updateTime);return this;};
		
	/** and update_time >= ? */
	this.updateTimeStart=function(start){if(this.proxy)return this.getProxy().updateTimeStart(start);this.put("updateTimeStart", start);return this;};			
	/** and update_time <= ? */
	this.updateTimeEnd=function(end){if(this.proxy)return this.getProxy().updateTimeEnd(end);this.put("updateTimeEnd", end);return this;};
		
		 
	
	
	/** 添加时间 [非空]       **/
	this.addTime=function(addTime){if(this.proxy)return this.getProxy().addTime(addTime);  this.put("addTime", addTime);return this;};
	/** and add_time is null */
	this.addTimeNull=function(){if(this.proxy)return this.getProxy().addTimeNull();if(this.get("addTimeNot")==null)this.put("addTimeNot", "");this.put("addTime", null);return this;};
	/** not .... */
	this.addTimeNot=function(){if(this.proxy)return this.getProxy().addTimeNot();this.put("addTimeNot", "not");return this;};
	this.addTimeNotNull=function(){if(this.proxy)return this.getProxy().addTimeNotNull();this.put("addTimeNot", "not");this.put("addTime", null);return this;};
	this.addTimeNot=function(addTime){if(this.proxy)return this.getProxy().addTimeNot(addTime);this.put("addTimeNot", "not");this.put("addTime", addTime);return this;};
		
	/** and add_time >= ? */
	this.addTimeStart=function(start){if(this.proxy)return this.getProxy().addTimeStart(start);this.put("addTimeStart", start);return this;};			
	/** and add_time <= ? */
	this.addTimeEnd=function(end){if(this.proxy)return this.getProxy().addTimeEnd(end);this.put("addTimeEnd", end);return this;};
		
		 
	
	
	/** 状态 [非空]   1:正常 0:无效     **/
	this.status=function(status){if(this.proxy)return this.getProxy().status(status);  this.put("status", status);return this;};
	/** and status is null */
	this.statusNull=function(){if(this.proxy)return this.getProxy().statusNull();if(this.get("statusNot")==null)this.put("statusNot", "");this.put("status", null);return this;};
	/** not .... */
	this.statusNot=function(){if(this.proxy)return this.getProxy().statusNot();this.put("statusNot", "not");return this;};
	this.statusNotNull=function(){if(this.proxy)return this.getProxy().statusNotNull();this.put("statusNot", "not");this.put("status", null);return this;};
	this.statusNot=function(status){if(this.proxy)return this.getProxy().statusNot(status);this.put("statusNot", "not");this.put("status", status);return this;};
		
		
	this.statusIn=function(ids){
		if(this.proxy)return this.getProxy().statusIn(ids);  this.put("statusIn", ids);return this;
	};	
		 
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有会员提现记录 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/finance/membershiprecord.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取会员提现记录分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/finance/membershiprecord.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取会员提现记录 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/finance/membershiprecord.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

MembershipRecord.get = function(id){
	var protocol = ux.ajax("/admin/finance/membershiprecord.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.membershipRecord;
	return null;
}

MembershipRecord.where = new MembershipRecord.Where(0,true);